import {createRouter, createWebHashHistory} from 'vue-router'

export default createRouter({
    history:createWebHashHistory(),
    routes: [
        {
            path: '/',
            name: 'Home',
            redirect: '/index',
            children: [
                {
                    path: '/index',
                    name: 'Index',
                    component: ()=>import('../views/Home/index.vue')
                },
            ]
        },
        {
            path: '/login',
            name: 'Login',
            component: ()=>import('../views/Login/index.vue')
        },
        {
            path: '/404',
            name: 'PageNotFound',
            component: ()=>import('../views/Error/404.vue')
        },
        {
          path: '/502',
          name: 'BadGateway',
          component: ()=>import('../views/Error/502.vue')
      }

    ]
})